<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/base/jsp/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title></title>
	<%@ include file="/base/jsp/jscss.jsp"%>
	<script type="text/javascript">
		
	</script>
	
</head>
<body>

<form action="${ctx }/base/security/userrole/user-role!userSettingRole.do" id="form" method="post">	
	<table>
		<tr>
			<th></th><th>id</th><th>username</th><th>password</th>
		</tr>
		<c:forEach var="user" items="${users }">
			<tr>
				<td><input type="checkbox" name="userIds" value="${user.id }"/></td>
				<td>${user.id }</td>
				<td>${user.username }</td>
				<td>${user.password }</td>
			</tr>
				<c:forEach var="ur" items="${user.userRoles }">
					<tr><td colspan="4">${ur.role.name }</td></tr>
				</c:forEach>
		</c:forEach>
	</table>
	
	<table>
		<tr>
			<th></th><th>id</th><th>name</th>
		</tr>
		<c:forEach var="role" items="${roles }">
			<tr>
				<td><input type="checkbox" name="roleIds" value="${role.id }"/></td>
				<td>${role.id }</td>
				<td>${role.name }</td>
			</tr>
		</c:forEach>
	</table>
	<input type="submit" />
</form>



</body>
</html>